package com.ajk.server.service;
import java.util.List;

import com.ajk.server.model.DiseaseKeyword;
import com.ajk.server.model.query.DiseaseKeywordQuery;

/**
 * 疾病搜索热词表  <br>
 * t_disease_keyword <br>
 * v1.0 2016-05-01
 */
public interface DiseaseKeywordService {

	/**
	 *根据ID删除 疾病搜索热词表
	 */
	public Integer deleteDiseaseKeywordById(Integer id);

	/**
	 *新增 疾病搜索热词表
	 */
	public Integer batchInsertDiseaseKeyword(List<? extends DiseaseKeyword> diseaseKeywords);

	/**
	 *新增 疾病搜索热词表
	 */
	public Integer insertDiseaseKeyword(DiseaseKeyword domain);


	/**
	 *更新 疾病搜索热词表
	 */
	public Integer updateDiseaseKeyword(DiseaseKeyword domain);

	/**
	 *根据ID查询 疾病搜索热词表
	 */
	public DiseaseKeyword findDiseaseKeywordById(Integer id);

	/**
	 *通过query 查询 疾病搜索热词表
	 */
	public List<DiseaseKeyword> findDiseaseKeywordByQuery(DiseaseKeywordQuery query);	

	public List<DiseaseKeyword> findDiseaseKeywordByQueryWithCache();
	
	/**
	 *通过query count总条数
	 */
	public Integer countDiseaseKeywordByQuery(DiseaseKeywordQuery query);

	/**
	 * 通过ids查询
	 */
	public List<DiseaseKeyword> findDiseaseKeywordByIds(List<Integer> ids);

	public void syncSingletonRedis(Integer keywordId);

	public void syncInRedis(boolean force);	
}	